from tb_menu.models import *


def updateMenu(userID="", time_status="True"):
    if isinstance(userID, list):
        TbMymenu.objects.filter(user_id__in=userID).update(timeout=time_status)
    else:
        TbMymenu.objects.filter(user_id=userID).update(timeout=time_status)